package com.ws.haungjia.Service.ServiceImp;

import com.ws.haungjia.Bean.HoutaiUser;
import com.ws.haungjia.Bean.User;
import com.ws.haungjia.Service.DengluService;
import com.ws.haungjia.mapper.DepmapprtMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class DengluServiceImp implements DengluService {
    @Autowired
    private DepmapprtMapper depmapprt;
    @Override
    public int addUser(String name, String pass, int shouji, String touxiang, Date zhuceshijian) {
        return depmapprt.insert(name,pass,shouji,touxiang,zhuceshijian);
    }

    @Override
    public User denglu(String name,String pass) {
        return depmapprt.denglu(name,pass);
    }

    @Override
    public HoutaiUser Hdenglu(String name, String miam) {
        return depmapprt.Hdenglu(name,miam);
    }

    @Override
    public User chachong(String name) {
        return depmapprt.chachong( name);
    }
}
